-- GENERATED SPELL FOR [Greymist Seer] --


function spell0_2203(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(547,pUnit)
pUnit:RegisterEvent('Sorts_2203', 2500, 1)
end

function spell1_2203(pUnit, Event) --@Lightning Shield,Self--
pUnit:FullCastSpellOnTarget(324,pUnit)
pUnit:RegisterEvent('Sorts_2203', 595, 1)
end

function Sorts_2203(pUnit, Event)
local choix_sorts_2203 = math.random(0, 1)
if choix_sorts_2203 == 0 then
pUnit:RegisterEvent('spell0_2203', 1, 1)
end
if choix_sorts_2203 == 1 then
pUnit:RegisterEvent('spell1_2203', 1, 1)
end
end

function mob2203_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2203', math.random(1500, 3000), 1)
end

function mob2203_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2203_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2203_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2203, 1, 'mob2203_Action')
RegisterUnitEvent(2203, 2, 'mob2203_Leave')
RegisterUnitEvent(2203, 3, 'mob2203_Kill')
RegisterUnitEvent(2203, 4, 'mob2203_Die')
